package com.zxj.gameplayer

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import java.util.Arrays

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        readAsset()
    }

    override fun onResume() {
        super.onResume()
        val intent = Intent(this,GamePlayNativeActivity::class.java)
        startActivity(intent)
        finish()
    }

    private fun readAsset() {
        val assets = assets
        val list = assets.list("res")
        Log.d("zhongxj: ","fileName==>${Arrays.toString(list)}")
    }
}